package com.jic.interaction.payOrder.service;

import com.alibaba.fastjson.JSONObject;

/**
 * 支付
 */
public interface PayOrderService {
    /**
     * 预下单
     * @param jsonObject
     * @return 订单号
     */
    JSONObject prePayOrder(JSONObject jsonObject);

    /**
     * 预下单查询
     * @param jsonObject
     * @return
     */
    JSONObject prePayOrderCheck(JSONObject jsonObject);

    /**
     * 退款
     * @param refund
     * @return
     */
    //RefundResponse deleteOrder(Refund refund) throws InterruptedException, ExecutionException, IOException;

    /**
     * 获取密码因子
     * @param
     * @return
     */
    JSONObject getPassWord(JSONObject jsonObject);

    /**
     * 支付
     */
    JSONObject wzPay(JSONObject jsonObject);

    /**
     * 支付查询
     */
    JSONObject wzPayCheck(JSONObject jsonObject);

    /**
     * 退款
     */
    JSONObject refundOrder(JSONObject jsonObject);

    /**
     * 退款查询
     */
    JSONObject refundOrderCheck(JSONObject jsonObject);

    /**
     * 微信支付
     * @param jsObject
     * @return
     */
    JSONObject wxPay(JSONObject jsObject);
}
